package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"lyz/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user/logic", &controllers.UserController{}, "post:Logic")
	beego.Router("/user/login", &controllers.UserController{}, "post:Login")
	beego.Router("/user/roleAdd", &controllers.UserController{}, "post:RoleAdd")
	beego.Router("/user/nodeAdd", &controllers.UserController{}, "post:NodeAdd")
	beego.Router("/user/userRoleAdd", &controllers.UserController{}, "post:UserRoleAdd")
	beego.Router("/user/roleNodeAdd", &controllers.UserController{}, "post:RoleNodeAdd")
	beego.Router("/user/userRole", &controllers.UserController{}, "post:UserRole")
	beego.Router("/user/roleNode", &controllers.UserController{}, "post:RoleNode")
	beego.Router("/user/userList", &controllers.UserController{}, "post:UserList")
	beego.Router("/user/userDetail", &controllers.UserController{}, "post:UserDetail")
	beego.Router("/user/update", &controllers.UserController{}, "post:Update")
	beego.Router("/user/add", &controllers.UserController{}, "post:Add")
	beego.Router("/user/shopPage", &controllers.UserController{}, "post:ShopPage")
}
